package gxnualbert.LambdaDemo.test1;

/**
 * @auther gxnualbert
 * @create 2021-05-30-8:35
 */
public class FilterEmployeeByAge implements  MyPredicate<Employee>{

    /**
     * 实现接口中的test 方法，如果员工年龄 》=35， 怎返回true
     * @param employee
     * @return
     */
    @Override
    public boolean test(Employee employee) {
        return employee.getAge() >=35;
    }
}
